import { defineStore } from 'pinia';

const useAppStore = defineStore('app', {
    state: () => ({
        // 导航栏是否折叠
        collapsed: false,
        // 当前选中的菜单
        selectedKeys: [],
        // 当前打开的菜单
        openKeys: [],
        // 当前预选中的菜单
        preOpenKeys: [],
        // 面包屑
        breadcrumb: []
    }),
    getters: {},
    actions: {}
});

export default useAppStore;
